﻿using CharacterCreation.Data.Models;
using CharacterCreation.Data.Services;
using CharacterCreation.Views.Contracts;
using System.Collections.ObjectModel;

namespace CharacterCreation.Views {
    /// <summary>
    /// The viewmodel 
    /// </summary>
    public class CharacterEditViewModel : BaseViewModel {
        private CharacterService _characterService = CharacterService.CreateInstance();

        /// <summary>
        /// The current character
        /// </summary>
        public Character Character {
            get { return _characterService.CurrentItem; }
        }

        /// <summary>
        /// Races
        /// </summary>
        public ObservableCollection<Race> Races {
            get { return RaceService.CreateInstance().Items; }
        }

        /// <summary>
        /// ctor
        /// </summary>
        public CharacterEditViewModel() {
        }
    }
}
